home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_313 / uucp / slowsetup.doc < prev    next >
Text File  |  1992-05-06  |  15KB  |  423 lines

  1.  
  2.                 SLOWSETUP.DOC
  3.  
  4.                 Matthew Dillon
  5.                 891 Regal Rd.
  6.                 Berkeley, Ca. 94708
  7.  
  8.                 pacbell.PacBell.COM!sorinc!overload!dillon
  9.  
  10.  
  11.             GETTING UUCP UP AND RUNNING FOR REAL
  12.  
  13.  
  14.     This UUCP distribution in general is not for the uninitiated.  That is,
  15.     it is not user friendly.  This particular document outlines a general
  16.     installation procedure.  Be warned that there are a LOT of things you
  17.     will have to do to bring up UUCP on your machine.
  18.  
  19.     This document shows a TYPICAL setup.  You will most likely want to
  20.     modify the example to fit your own needs.  I cover all the points
  21.     though.
  22.  
  23.     (1) You made backups of the distribution floppies, right?  DO NOT
  24.     MODIFY THE DISTRIBUTION FLOPPIES.  The instructions below are
  25.     long and some are complex and you may wish to refer to the
  26.     original distribution diskettes if you accidently mess something
  27.     up.
  28.  
  29.  
  30.     (2A) Installing UUCP on a single floppy system.
  31.  
  32.     Well, it *is* possible, but difficult.    you need to make as much
  33.     space as possible available on the main floppy.
  34.  
  35.     The second distribution disk contains only the source and manual
  36.     pages.    I suggest you shuffle things around a bit.  You already
  37.     have a copy of the first distribution diskette. I suggest you
  38.     format a new disk and put the MAN directory of the second
  39.     distribution disk on it.  Note that there is a MAN directory
  40.     on the boot disk as well but this one contains only dmail.help
  41.     which you need to gain online help from dmail.
  42.  
  43.     The following executables are required on the boot floppy and
  44.     should not be moved off.  You should move as many of the remaining
  45.     executables somewhere else as you can.
  46.  
  47.         Required Executables in C
  48.  
  49.         c/dmail
  50.         c/getty
  51.         c/rmail
  52.         c/uucico
  53.         c/rnews
  54.         c/uucp
  55.         c/unbatcher
  56.         c/dme        (unless you configure your own editor)
  57.         c/sendmail
  58.         c/uux
  59.         c/uuxqt
  60.  
  61.     You will want to change the ASSIGNments in s/startup-sequence
  62.     as follows:
  63.  
  64.         Assign UUSPOOL:    UUCP:SPOOL
  65.         Assign UUMAIL:    UUCP:MAIL
  66.         Assign UUNEWS:    UUCP:MAIL/NEWS
  67.  
  68.     These directories MUST be in nonvoltile storage or your USENET
  69.     node will be unreliable.
  70.  
  71.     (2B) Installing UUCP on a duel floppy system.
  72.  
  73.     In this case very little shuffling is required.  I suggest
  74.     the second floppy be used for UUSPOOL:, UULIB:, UUMAIL:, UUNEWS:,
  75.     GETTY:, and UUPUB:.
  76.  
  77.     Format a new floppy (this will be your second floppy) and create
  78.     directories as follows:
  79.  
  80.         MakeDir df1:spool
  81.         MakeDir df1:mail
  82.         MakeDir df1:mail/news
  83.         MakeDir df1:pub
  84.         MakeDir df1:lib
  85.  
  86.     Modify the Assignments in s/startup-sequence of the boot floppy
  87.     as follows:
  88.  
  89.         Assign UUSPOOL:    df1:spool
  90.         Assign UULIB:    df1:lib
  91.         Assign UUMAIL:    df1:mail
  92.         Assign UUNEWS:    df1:mail/news
  93.         Assign GETTY:    UULIB:
  94.         Assign UUPUB:    df1:pub
  95.  
  96.     Copy df0:lib to df1:lib and either delete or rename df0:lib to
  97.     prevent confusion.  What we have done is move all dynamic storage
  98.     to df1: .. files that will change a lot or require a lot of disk
  99.     space.    Specifically, UULIB: was moved to DF1: because the
  100.     sequence number file is kept in UULIB: and this is updated for
  101.     each mail message sent.
  102.  
  103.     (2B) Installing UUCP on a Hard Drive
  104.  
  105.     Make a directory called UUCP on your hard drive somewhere.  And
  106.     Assign UUCP: to it.   Copy the contents of both distribution
  107.     floppies to your harddrive:
  108.  
  109.         (put first disk in DF0:)
  110.         1> Copy df0: UUCP: ALL CLONE
  111.         (put second disk in DF0:)
  112.         1> Copy df0: UUCP: ALL CLONE
  113.  
  114.     It is easiest to keep all the directories in one place.  Note
  115.     that a MAN directory exists on both distribution floppies, simply
  116.     merge them together.
  117.  
  118.     Merge the startup-sequence on the boot floppy into your master
  119.     startup-sequence.  Make sure you get all the Assigns and that
  120.     they are properly reassigned to the appropriate directory on
  121.     the harddisk.  Most people normally make a master UUCP: assign
  122.     as a reference point to other assigns.
  123.  
  124.  
  125.     Be sure that UUSPOOL:, UUMAIL:, UUNEWS: and UUPUB: are assigned
  126.     to your hard disk instead of ram.
  127.  
  128.     You will most likely want to run DCron and Getty from your
  129.     startup-sequence.  Be sure that UUCP:C is assigned *before*
  130.     these programs are run so they pick up the appropriate path.
  131.  
  132.     If Getty interferes with any terminal program you might use
  133.     you may be forced to BREAK it.    Remember to restart it to
  134.     enable incomming UUCP calls again.
  135.  
  136.     DCron is an extremely useful utility to run, especially in
  137.     systems with hard disks.  The only thing you have to watch out
  138.     for is to be sure to BREAK it (kill it) before shutting off your
  139.     machine.  DCron writes to its log file and runs other programs
  140.     based on the date and you don't want to accidently turn off your
  141.     machine when DCron has just started up some other program that
  142.     may write to your hard disk.
  143.  
  144.     In the context of UUCP, DCron is normally used to automatically
  145.     poll systems in the wee hours while you are asleep, to trim
  146.     log files automagically, and maybe disable the modem's speaker
  147.     while you are asleep (at least, that is what I use it for).
  148.  
  149.     Most people with HDs running UUCP leave their Amiga's on 24 hours
  150.     a day.
  151.  
  152.                 Other System Directories
  153.  
  154.     Merge the mountlist into your master mountlist and copy any
  155.     devices from l that you do not already have into your
  156.     master l directory.
  157.  
  158.     merge or copy uucp:s/crontab to s:crontab and uucp:s/.edrc to
  159.     s:.edrc .
  160.  
  161.     You can ignore files in uucp:system, they are standard system
  162.     files.
  163.  
  164.         ----    --  -    -   -    -   -    -  --    ----
  165.  
  166.     (3)     Other startup-sequence efficiency considerations
  167.  
  168.     UUCP relies heavily on the Amiga's multitasking capabilities.
  169.     Most programs execute other programs.  Many programs in UUCP:C
  170.     may be made resident as shown by the pure bit being set.  You
  171.     will probably at least want to make C:RUN resident if you haven't
  172.     already.
  173.  
  174.     Depending on available RAM you may want to make certain other
  175.     progams resident.  Here are some suggestions:
  176.  
  177.         uucp:c/dme        ; run by dmail to edit mail
  178.         uucp:c/uuxqt        ; run by uucico to handle received files
  179.         uucp:c/rmail        ; run by uuxqt to handle received mail
  180.         uucp:c/sendmail     ; run by dmail to handle outgoing mail
  181.  
  182.         (note that uucp:c/sendmail and uucp:c/rmail are the same
  183.          executable just renamed)
  184.  
  185.     STACK:    All programs should run with a stack of 8192.  This
  186.     has been tested for all programs except RNews and ANews which
  187.     may require more.
  188.  
  189.     RNEWS:    RNews currently takes a huge amount of memory and
  190.     will run only on machines with at least 1.5MB of ram.  Even
  191.     with 1.5MB you may need to run rnews manually instead of having
  192.     it automatically run by uuxqt.    In this case rename the rnews
  193.     executable to something else and create a dummy script file
  194.     in its place (named as 'rnews') with the script bit set.
  195.  
  196.     (4)     System requirements
  197.  
  198.     Be sure you are running at least version 1.3 of the operating
  199.     system.  The main consideration is that you are using at least
  200.     the 1.3 serial device.
  201.  
  202.     The NULL: device is required, this is in the l directory of
  203.     the boot floppy as already discussed.
  204.  
  205.     The UUSER: device is not required unless you want to start
  206.     getting fancy with the Getty.  This is mainly a programmer's
  207.     tool.
  208.  
  209.     (5)     Getty
  210.  
  211.     Normally one runs a Getty in his startup-sequence on the internal
  212.     serial port (from which you wish to receive calls).  Currently
  213.     only one Getty may be run PER SERIAL DEVICE NAME, and using other
  214.     units of a given serial device will interfere with Getty's operation.
  215.     This is due to the difficulty of implementation in Getty and will
  216.     eventually be fixed (to fix the problem I have to patch into
  217.     the OpenDevice and CloseDevice vectors).
  218.  
  219.     So for now you can really only run Getty on the internal serial
  220.     device.
  221.  
  222.     Getty does its best to not interfere with comm programs and
  223.     the like, but if a comm program refuses to run because it
  224.     can't get exclusive access to the serial port you may have
  225.     to kill the Getty by BREAKing it from a CLI.
  226.  
  227.     Refer to the manual page MAN:Getty for more information (for
  228.     floppy based systems all manual pages are on the second
  229.     distribution diskette).
  230.  
  231.     (6)     SHELL-STARTUP
  232.  
  233.     Assuming you are using the 1.3 Shell, the S:Shell-Startup file
  234.     normally contains at least a Path command and Stack command to
  235.     properly setup a newshell's path and stack.  Be sure the stack is
  236.     at least 8192 for this distribution of UUCP and add the UUCP:C (or
  237.     wherever you have placed the distribution executables) to your path
  238.     list.  Older UUCP distributions required a huge stack, this has
  239.     been fixed.
  240.  
  241.     (7)                   SITE-SETUP CONTROL FILES
  242.  
  243.     The following is a description of control and log files required
  244.     for UUCP and how you must modify them to install your system.
  245.  
  246.     (GETTY: is normally Assign'd to UULIB:)
  247.  
  248.     GETTY:Getty-Header
  249.  
  250.         This file contains the header line that is printed before a
  251.         login: prompt and is typically only two or three lines long.
  252.         The header usually contains your node name and the version of
  253.         the OS you are running under so people calling from term
  254.         programs know who you are.
  255.  
  256.         (Getty can be used to run things other than uucico)
  257.  
  258.         Modify accordingly.
  259.  
  260.     GETTY:Passwd
  261.  
  262.         The password file is used by Getty to authenticate login
  263.         requests.  In the context of UUCP, remote UUCICOs that call
  264.         your machine up will provide a login and password.    Getty
  265.         handles this and if the login is valid and the password matches
  266.         will run the appropriate program found in the password file.
  267.  
  268.         Getty also deals with such features as automatic disconnect on
  269.         timeout and logs times for all incomming and outgoing calls.
  270.  
  271.         In a serious system you should first remove all the junk
  272.         entries that come with the distribution.   You need an entry
  273.         for each remote machine you want to be able to call you.  You
  274.         do not necessarily need to give them logins that corrospond to
  275.         their machine names though this is how it is usually done.
  276.  
  277.         Other programs in the future will be able to be run from
  278.         a Getty.
  279.  
  280.         Later versions of UUCP will implement MAILER-DAEMON type
  281.         stuff like 'unknown user', in which case the password file
  282.         will be used to define which user names are valid on the
  283.         system.
  284.  
  285.     GETTY:LOGFILE
  286.  
  287.         The logfile is appended to by Getty whenever an incomming
  288.         call occurs or somebody takes over the serial port.  It
  289.         logs connect and disconnect times for incomming calls and
  290.         usage for external programs.
  291.  
  292.     UULIB:Domain
  293.  
  294.         In nearly every case you will not need this file.
  295.  
  296.         Those of you who wish to do domain routing through
  297.         their machine or have more than one default for
  298.         unknown destinations should refer to the manual
  299.         page MAN:Domains.
  300.  
  301.     UULIB:.Signature
  302.  
  303.         .Signature is used by the Mail program and normally appended
  304.         to outgoing mail.
  305.  
  306.         Modify accordingly.
  307.  
  308.     UULIB:Seq
  309.  
  310.         The Seq file should exist but otherwise not be modified by
  311.         the user (except for setting it to a "1" once a year).  This
  312.         file is atomically updated and used to provide unique filenames
  313.         and mail IDs for outgoing mail.
  314.  
  315.     UULIB:Security
  316.  
  317.         This file contains a list of allowed directories remote UUCP
  318.         transfers may read and write to.  Refer to the Security manual
  319.         page.  This file never contains the UUSPOOL: directory which
  320.         is implicitly read-write.
  321.  
  322.         You need not modify this file now but should keep it in mind.
  323.         It protects your system in as much as I have been able to
  324.         close the loopholes.  Loopholes might still exist.
  325.  
  326.     UULIB:news.distribution
  327.  
  328.         This file contains a list of news distribution idents for
  329.         various areas and must normally be modified according to
  330.         where you are.. you need to be a UUCP guru to do this.  Most
  331.         people can just leave it alone.
  332.  
  333.     UULIB:Config
  334.  
  335.         This file contains configuration information for many
  336.         executables in UUCP:C and should be modified accordingly.
  337.  
  338.         Be sure you modify at least the following entries.    REFER TO
  339.         THE 'Assigns' MANUAL PAGE.
  340.  
  341.         NodeName
  342.         UserName
  343.         RealName
  344.         NewsFeed    (not required if you don't care about news)
  345.         Organization
  346.         TimeZone
  347.         DefaultNode
  348.  
  349.         **** Take some time to pick a node name for yourself.  It
  350.          should be no more than 8 characters long.  Some UUCP sites
  351.          barf at node names longer than 6 chars so if you are not
  352.          sure of your neighbors pick one no more than 6 characters
  353.          long.    Your site name should be in lower case.
  354.  
  355.     UULIB:L.Sys
  356.  
  357.         This file contains site information for sites that may call
  358.         you up or you may call up.
  359.  
  360.         You must modify this file appropriately before you can run UUCP,
  361.         refer to the 'L.Sys' manual page.
  362.  
  363.     UULIB:Aliases
  364.  
  365.         This is a mail aliases file with aproximately the same
  366.         power as /usr/lib/aliases on UNIX systems.    You should
  367.         refer to the 'Aliases' manual page and modify this file as
  368.         appropriate for various defaults like 'postmaster'... to
  369.         whatever user name you pick for yourself.
  370.  
  371.     UUCP:S/Crontab
  372.  
  373.         This is a functional Crontab file for use with the DCron program.
  374.         This file is normally moved to S: (it is useless in UUCP:S).
  375.  
  376.     UUSPOOL:LOGFILE
  377.  
  378.         UUCICO and other programs log errors and other things to
  379.         this file.    Normally you use DCron to clean up this and
  380.         other log files once daily to keep them from getting to large.
  381.  
  382.  
  383.     (8)     TESTING / DMAIL
  384.  
  385.     You will next want to test your UUCP configuration.  If testing
  386.     with a friend's Amiga running the same distribution simply
  387.     email to him, then one of you run uucico -s<remotesystem>
  388.     just like in QuickSetup.DOC, except this time you are using
  389.     the system name he picked instead of 'test1' or 'test2'.
  390.  
  391.     If the initial tests in QuickSetup.DOC worked and the system
  392.     is not working now check the following (common problems):
  393.  
  394.         (a) the login and password in your L.Sys file (that uucico uses
  395.         to login to the remote machine) matches the login and
  396.         password in the remote machine's Getty:Passwd file.
  397.  
  398.         (b) There is an entry for your node in the remote machine's
  399.         L.Sys file and vise versa
  400.  
  401.         (c) The telephone number is correct
  402.  
  403.         (d) the node names are all in lower case
  404.  
  405.         (e) you constructed the email address correctly (nodename!user)
  406.  
  407.     I suggest you get UUCP running with a friend before getting it
  408.     running with a UNIX system as it is easier to test it with a
  409.     friend.
  410.  
  411.     Assuming you email to the user name he picked for his UULIB:Config
  412.     'UserName' entry and he did the same thing to you, entering
  413.     'dmail' without any arguments will bring up the mail shell
  414.     and allow you to read the message after transfer via UUCico
  415.     is complete.  You can check that the email actually arrived
  416.     into the right mail box in UUMAIL: by simply getting a directory
  417.     of UUMAIL:
  418.  
  419.     READ the manual page for DMail for information on the
  420.     construction of mail paths to other systems and users.
  421.  
  422.  
  423.